package com.se.feign;

import com.se.po.CommonResult;
import com.se.po.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientCallBack implements UserFeignClient{
    @Override
    public CommonResult<User> getUserById(Integer userId) {
        //403:请求被服务器拒绝
        return new CommonResult<>(403,"feign触发了熔断降级方法",null);
    }
}
